Log in Register Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

cody's Profile Picture

cody

4270 Files

632702 Views

Latest files of /cody/swapnilsparsh/30DaysOfJavaScript/193 - Reaction Time

README.md cody/swapnilsparsh/30DaysOfJavaScript/193 - Reaction Time/README.md
162 Views
0 Comments
# Reaction Time:

Game That Is Used to test the Reaction Time Click on the Box As quickly As you can and get the time for that.

# Tech Stacks:
- HTML
- CSS
- JS
index.html cody/swapnilsparsh/30DaysOfJavaScript/193 - Reaction Time/index.html
297 Views
0 Comments
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Reaction Time</title>
</head>
script.js cody/swapnilsparsh/30DaysOfJavaScript/193 - Reaction Time/script.js
98 Views
0 Comments
var start = new Date().getTime();
//function to change color of shapes
function randcolor(){
var colorArray = '0123456789ABCDEF';
var hash ='#';
for(var i =0;i<6;i++){
hash+=colorArray[Math.floor(Math.random()*16)];
}